3.465 \(\int \frac{\left (a+c x^2\right )^2}{(d+e x)^2} \, dx\)

Optimal. Leaf size=94 \[ -\frac{\left (a e^2+c d^2\right )^2}{e^5 (d+e x)}-\frac{4 c d \left (a e^2+c d^2\right ) \log (d+e x)}{e^5}+\frac{c x \left (2 a e^2+3 c d^2\right )}{e^4}-\frac{c^2 d x^2}{e^3}+\frac{c^2 x^3}{3 e^2} \]

[Out]

(c*(3*c*d^2 + 2*a*e^2)*x)/e^4 - (c^2*d*x^2)/e^3 + (c^2*x^3)/(3*e^2) - (c*d^2 + a
*e^2)^2/(e^5*(d + e*x)) - (4*c*d*(c*d^2 + a*e^2)*Log[d + e*x])/e^5

_______________________________________________________________________________________

Rubi [A]  time = 0.177279, antiderivative size = 94, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.059 \[ -\frac{\left (a e^2+c d^2\right )^2}{e^5 (d+e x)}-\frac{4 c d \left (a e^2+c d^2\right ) \log (d+e x)}{e^5}+\frac{c x \left (2 a e^2+3 c d^2\right )}{e^4}-\frac{c^2 d x^2}{e^3}+\frac{c^2 x^3}{3 e^2} \]

Antiderivative was successfully verified.

[In]  Int[(a + c*x^2)^2/(d + e*x)^2,x]

[Out]

(c*(3*c*d^2 + 2*a*e^2)*x)/e^4 - (c^2*d*x^2)/e^3 + (c^2*x^3)/(3*e^2) - (c*d^2 + a
*e^2)^2/(e^5*(d + e*x)) - (4*c*d*(c*d^2 + a*e^2)*Log[d + e*x])/e^5

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ - \frac{2 c^{2} d \int x\, dx}{e^{3}} + \frac{c^{2} x^{3}}{3 e^{2}} - \frac{4 c d \left (a e^{2} + c d^{2}\right ) \log{\left (d + e x \right )}}{e^{5}} + \frac{\left (2 a e^{2} + 3 c d^{2}\right ) \int c\, dx}{e^{4}} - \frac{\left (a e^{2} + c d^{2}\right )^{2}}{e^{5} \left (d + e x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((c*x**2+a)**2/(e*x+d)**2,x)

[Out]

-2*c**2*d*Integral(x, x)/e**3 + c**2*x**3/(3*e**2) - 4*c*d*(a*e**2 + c*d**2)*log
(d + e*x)/e**5 + (2*a*e**2 + 3*c*d**2)*Integral(c, x)/e**4 - (a*e**2 + c*d**2)**
2/(e**5*(d + e*x))

_______________________________________________________________________________________

Mathematica [A]  time = 0.103521, size = 91, normalized size = 0.97 \[ \frac{3 c e x \left (2 a e^2+3 c d^2\right )-\frac{3 \left (a e^2+c d^2\right )^2}{d+e x}-12 c d \left (a e^2+c d^2\right ) \log (d+e x)-3 c^2 d e^2 x^2+c^2 e^3 x^3}{3 e^5} \]

Antiderivative was successfully verified.

[In]  Integrate[(a + c*x^2)^2/(d + e*x)^2,x]

[Out]

(3*c*e*(3*c*d^2 + 2*a*e^2)*x - 3*c^2*d*e^2*x^2 + c^2*e^3*x^3 - (3*(c*d^2 + a*e^2
)^2)/(d + e*x) - 12*c*d*(c*d^2 + a*e^2)*Log[d + e*x])/(3*e^5)

_______________________________________________________________________________________

Maple [A]  time = 0.011, size = 126, normalized size = 1.3 \[{\frac{{c}^{2}{x}^{3}}{3\,{e}^{2}}}-{\frac{{c}^{2}d{x}^{2}}{{e}^{3}}}+2\,{\frac{acx}{{e}^{2}}}+3\,{\frac{{c}^{2}{d}^{2}x}{{e}^{4}}}-4\,{\frac{cd\ln \left ( ex+d \right ) a}{{e}^{3}}}-4\,{\frac{{d}^{3}\ln \left ( ex+d \right ){c}^{2}}{{e}^{5}}}-{\frac{{a}^{2}}{e \left ( ex+d \right ) }}-2\,{\frac{{d}^{2}ac}{{e}^{3} \left ( ex+d \right ) }}-{\frac{{c}^{2}{d}^{4}}{{e}^{5} \left ( ex+d \right ) }} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((c*x^2+a)^2/(e*x+d)^2,x)

[Out]

1/3*c^2*x^3/e^2-c^2*d*x^2/e^3+2*c/e^2*a*x+3/e^4*c^2*d^2*x-4*c*d/e^3*ln(e*x+d)*a-
4*d^3/e^5*ln(e*x+d)*c^2-1/e/(e*x+d)*a^2-2/e^3/(e*x+d)*a*c*d^2-d^4/e^5/(e*x+d)*c^
2

_______________________________________________________________________________________

Maxima [A]  time = 0.685795, size = 151, normalized size = 1.61 \[ -\frac{c^{2} d^{4} + 2 \, a c d^{2} e^{2} + a^{2} e^{4}}{e^{6} x + d e^{5}} + \frac{c^{2} e^{2} x^{3} - 3 \, c^{2} d e x^{2} + 3 \,{\left (3 \, c^{2} d^{2} + 2 \, a c e^{2}\right )} x}{3 \, e^{4}} - \frac{4 \,{\left (c^{2} d^{3} + a c d e^{2}\right )} \log \left (e x + d\right )}{e^{5}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^2 + a)^2/(e*x + d)^2,x, algorithm="maxima")

[Out]

-(c^2*d^4 + 2*a*c*d^2*e^2 + a^2*e^4)/(e^6*x + d*e^5) + 1/3*(c^2*e^2*x^3 - 3*c^2*
d*e*x^2 + 3*(3*c^2*d^2 + 2*a*c*e^2)*x)/e^4 - 4*(c^2*d^3 + a*c*d*e^2)*log(e*x + d
)/e^5

_______________________________________________________________________________________

Fricas [A]  time = 0.203071, size = 203, normalized size = 2.16 \[ \frac{c^{2} e^{4} x^{4} - 2 \, c^{2} d e^{3} x^{3} - 3 \, c^{2} d^{4} - 6 \, a c d^{2} e^{2} - 3 \, a^{2} e^{4} + 6 \,{\left (c^{2} d^{2} e^{2} + a c e^{4}\right )} x^{2} + 3 \,{\left (3 \, c^{2} d^{3} e + 2 \, a c d e^{3}\right )} x - 12 \,{\left (c^{2} d^{4} + a c d^{2} e^{2} +{\left (c^{2} d^{3} e + a c d e^{3}\right )} x\right )} \log \left (e x + d\right )}{3 \,{\left (e^{6} x + d e^{5}\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^2 + a)^2/(e*x + d)^2,x, algorithm="fricas")

[Out]

1/3*(c^2*e^4*x^4 - 2*c^2*d*e^3*x^3 - 3*c^2*d^4 - 6*a*c*d^2*e^2 - 3*a^2*e^4 + 6*(
c^2*d^2*e^2 + a*c*e^4)*x^2 + 3*(3*c^2*d^3*e + 2*a*c*d*e^3)*x - 12*(c^2*d^4 + a*c
*d^2*e^2 + (c^2*d^3*e + a*c*d*e^3)*x)*log(e*x + d))/(e^6*x + d*e^5)

_______________________________________________________________________________________

Sympy [A]  time = 2.54489, size = 105, normalized size = 1.12 \[ - \frac{c^{2} d x^{2}}{e^{3}} + \frac{c^{2} x^{3}}{3 e^{2}} - \frac{4 c d \left (a e^{2} + c d^{2}\right ) \log{\left (d + e x \right )}}{e^{5}} - \frac{a^{2} e^{4} + 2 a c d^{2} e^{2} + c^{2} d^{4}}{d e^{5} + e^{6} x} + \frac{x \left (2 a c e^{2} + 3 c^{2} d^{2}\right )}{e^{4}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x**2+a)**2/(e*x+d)**2,x)

[Out]

-c**2*d*x**2/e**3 + c**2*x**3/(3*e**2) - 4*c*d*(a*e**2 + c*d**2)*log(d + e*x)/e*
*5 - (a**2*e**4 + 2*a*c*d**2*e**2 + c**2*d**4)/(d*e**5 + e**6*x) + x*(2*a*c*e**2
 + 3*c**2*d**2)/e**4

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.212807, size = 201, normalized size = 2.14 \[ \frac{1}{3} \,{\left (c^{2} - \frac{6 \, c^{2} d}{x e + d} + \frac{6 \,{\left (3 \, c^{2} d^{2} e^{2} + a c e^{4}\right )} e^{\left (-2\right )}}{{\left (x e + d\right )}^{2}}\right )}{\left (x e + d\right )}^{3} e^{\left (-5\right )} + 4 \,{\left (c^{2} d^{3} + a c d e^{2}\right )} e^{\left (-5\right )}{\rm ln}\left (\frac{{\left | x e + d \right |} e^{\left (-1\right )}}{{\left (x e + d\right )}^{2}}\right ) -{\left (\frac{c^{2} d^{4} e^{3}}{x e + d} + \frac{2 \, a c d^{2} e^{5}}{x e + d} + \frac{a^{2} e^{7}}{x e + d}\right )} e^{\left (-8\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^2 + a)^2/(e*x + d)^2,x, algorithm="giac")

[Out]

1/3*(c^2 - 6*c^2*d/(x*e + d) + 6*(3*c^2*d^2*e^2 + a*c*e^4)*e^(-2)/(x*e + d)^2)*(
x*e + d)^3*e^(-5) + 4*(c^2*d^3 + a*c*d*e^2)*e^(-5)*ln(abs(x*e + d)*e^(-1)/(x*e +
 d)^2) - (c^2*d^4*e^3/(x*e + d) + 2*a*c*d^2*e^5/(x*e + d) + a^2*e^7/(x*e + d))*e
^(-8)